package com.sowka.miko.weather.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * To keep it simple it's a collection of <code>Condition</code> elements that
 * includes the current conditions, and future forecasts.
 * 
 * @author msowka
 *
 */
public class Forecast {

	Conditions current;
	
	List<Conditions> forecast = new ArrayList<Conditions>();

	public Conditions getCurrent() {
		return current;
	}

	public void setCurrent(Conditions current) {
		this.current = current;
	}
	
	public void addForecast(Conditions conditions) {
		forecast.add(conditions);
	}
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Current:\n").append(current);
		for (int i = 0; i < forecast.size(); i++) {
			builder.append("\nForecast #").append(i + 1).append(":\n").append(forecast.get(i));
		}
		
		return builder.toString();
	}
}
